package com.fortune.rainshinecommon.model.service;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fortune.rainshinecommon.base.BaseModel;

@TableName("orders")
public class OrderModel extends BaseModel {

    private static final long serialVersionUID = -2130239974688706868L;

    private Integer userId;//购买者
    private String orderCode;//订单编号
    private Integer shopId;//购买店铺id
    private Integer shopIdFrom;//从哪家商铺购买的店铺Id
    private int totalNum;//总数量
    private BigDecimal totalPrice;//总价格
    private Byte orderStatus;//订单状态（1--等待确认；2--确认下单；3--确认收货；4--已拒绝;5--买方取消订单;6--卖方取消订单）
    private Byte delivery;//供货方式--1：配送；2：自提
    @TableField(exist = false)
    private List<OrderDetailModel> orderList;//订单详情
    @TableField(exist = false)
    private String userName;//采购方姓名
    @TableField(exist = false)
    private String shopName;//采购方商铺名称
    @TableField(exist = false)
    private String userPhone;//采购方手机号
    /**
     * 出货方姓名
     */
    @TableField(exist = false)
	private String saleUserName;
    /**
     * 出货方电话
     */
    @TableField(exist = false)
	private String saleUserPhone;

    public String getSaleUserName() {
        return saleUserName;
    }

    public void setSaleUserName(String saleUserName) {
        this.saleUserName = saleUserName;
    }

    public String getSaleUserPhone() {
        return saleUserPhone;
    }

    public void setSaleUserPhone(String saleUserPhone) {
        this.saleUserPhone = saleUserPhone;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Byte getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Byte orderStatus) {
        this.orderStatus = orderStatus;
    }

    public List<OrderDetailModel> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<OrderDetailModel> orderList) {
        this.orderList = orderList;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Integer getShopIdFrom() {
        return shopIdFrom;
    }

    public void setShopIdFrom(Integer shopIdFrom) {
        this.shopIdFrom = shopIdFrom;
    }

	public Byte getDelivery() {
		return delivery;
	}

	public void setDelivery(Byte delivery) {
		this.delivery = delivery;
	}
}
